//
//  UserModel.m
//  SDSY
//
//  Created by 蓝布鲁 on 2017/4/11.
//  Copyright (c) 2017 蓝布鲁. All rights reserved.
//

#import "UserModel.h"

@interface UserModel()<NSCoding>

@end

@implementation UserModel
- (void)encodeWithCoder:(NSCoder *)coder {
    [coder encodeObject:self.name forKey:@"name"];
    [coder encodeObject:self.address forKey:@"address"];
    [coder encodeObject:self.picture_url forKey:@"picture_url"];
}

- (instancetype)initWithCoder:(NSCoder *)coder {
    self = [super init];
    if (self) {
        self.name = [coder decodeObjectForKey:@"name"];
        self.address = [coder decodeObjectForKey:@"address"];
        self.picture_url = [coder decodeObjectForKey:@"picture_url"];
    }
    return self;
}


@end
